package cn.wolfcode.consumer._04_message_send_delay;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(
        topic = "delay",
        consumerGroup = "boot-delay"
)
public class SendDelay implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        System.out.println("消息的内容为:" + message);
    }
}
